package com.sweetest.luffy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户行程
 * </p>
 *
 * @since 2020-07-10
 */

@Data
@TableName("l_user_line")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserLine对象", description = "用户行程")
public class UserLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    @ApiModelProperty(value = "起点经度")
    private Double startLng;

    @ApiModelProperty(value = "起点纬度")
    private Double startLat;

    @ApiModelProperty(value = "地址")
    private String startAddress;

    @ApiModelProperty(value = "结束点经度")
    private Double endLng;

    @ApiModelProperty(value = "结束点纬度")
    private Double endLat;

    @ApiModelProperty(value = "地址")
    private String endAddress;

    @ApiModelProperty(value = "0开始 1取消  2完成 3已接单")
    private Integer status;

    @ApiModelProperty(value = "出行人数")
    private Integer travelNum;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
}
